﻿//===============================================================================
// Microsoft Innovation Centre - Western Europe
// Copyright (c) 2008 Microsoft Corporation. All rights reserved.
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious.  No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.
//===============================================================================

using System.Runtime.Serialization;

namespace Microsoft.WVB.Server
{
    [DataContract]
    public class CreateProfileResponse
    {
        [DataMember]
        public bool Succeed { get; private set; }
        [DataMember]
        public WVBProfile Profile { get; private set; }
        public CreateProfileResponse(bool succeed, WVBProfile profile)
        {
            this.Succeed = succeed;
            this.Profile = profile;
        }
    }

    [DataContract]
    public class CreateProfileRequest
    {
        [DataMember]
        public WVBProfile Profile { get; private set; }
        public CreateProfileRequest(WVBProfile profile)
        {
            this.Profile = profile;
        }
    }

    [DataContract]
    public class DeleteProfileResponse
    {
        [DataMember]
        public bool Succeed { get; private set; }
        public DeleteProfileResponse(bool succeed)
        {
            this.Succeed = succeed;
        }
    }

    [DataContract]
    public class DeleteProfileRequest
    {
        [DataMember]
        public string UserName { get; private set; }
        public DeleteProfileRequest(string username)
        {
            this.UserName = username;
        }
    }

    [DataContract]
    public class GetProfileResponse
    {
        [DataMember]
        public WVBProfile Profile { get; private set; }
        public GetProfileResponse(WVBProfile profile)
        {
            this.Profile = profile;
        }
    }

    [DataContract]
    public class GetProfileRequest
    {
        [DataMember]
        public string Username { get; private set; }
        public GetProfileRequest(string username)
        {
            this.Username = username;
        }
    }

    [DataContract]
    public class UpdateProfileResponse
    {
        [DataMember]
        public bool Succeed { get; private set; }
        public UpdateProfileResponse(bool succeed)
        {
            this.Succeed = succeed;
        }
    }

    [DataContract]
    public class UpdateProfileRequest
    {
        [DataMember]
        public WVBProfile Profile { get; private set; }
        public UpdateProfileRequest(WVBProfile profile)
        {
            this.Profile = profile;
        }
    }
}
